<#include "../../../include/variable.htm">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${Application["jsPath"]}/microlife/microlife-common.js" ></script>
<title>Insert title here</title>
</head>
<body >
		<table width="960px" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
			    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			      <tr>
			        <td height="24" bgcolor="#55555" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
			          <tr>
			            <td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
			              <tr>
			                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${Application["stylePath"]}/images/table/tb.gif" width="14" height="14" /></div></td>
			                <td width="94%" valign="bottom"> 管理人员基本信息列表 </td>
			              </tr>
			            </table></td>
			            <td><div align="right" ><span class="STYLE1" style="color: #eee">
			              <input type="checkbox" name="checkbox11" id="checkbox11" />
			         		     全选      &nbsp;&nbsp;<img src="${Application["stylePath"]}/images/table/add.gif" width="10" height="10" /> <span id="addClass">添加 </span>  &nbsp; <img src="${Application["stylePath"]}/images/table/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;<img src="${Application["stylePath"]}/images/table/edit.gif" width="10" height="10" />   编辑    &nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
			          </tr>
			        </table></td>
			      </tr>
			    </table></td>
			  </tr>
			  <tr>
			    <td>
			    	<table width="960px" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
		     		 <tr>
		       			 <th width="60px" height="20" bgcolor="d3eaef" class="STYLE10"> 
		        		  <input type="checkbox" name="checkbox" id="checkbox" />
		      			 </th>
		       			  <th  height="20" width="100px " bgcolor="d3eaef" class="STYLE10">  
		       			  	类别 
		       			  </th>
		       			   <th  height="20" width="100px"  bgcolor="d3eaef" class="STYLE10">  
		       			  	子类别数量 
		       			  </th>
		       			   <th  height="20" width="300px"   bgcolor="d3eaef" class="STYLE10">  
		       			  	关键字 
		       			  </th>
		       			   <th  height="20" width="300px"  bgcolor="d3eaef" class="STYLE10">  
		       			  	描&nbsp;&nbsp;述 
		       			  </th>
		       			  
		       			  <th  height="20" width="100px"  bgcolor="d3eaef" class="STYLE10">  
		       			  	操&nbsp;&nbsp;作 
		       			  </th>
			    	 </tr>
					 		<#if  productClasss??>
							 <#list productClasss as productClass>
							 	 <tr>
				       				<td height="70"  align="center" bgcolor="#FFFFFF"> 
		        					  <input type="checkbox" name="checkbox2" id="checkbox2" />
		    					     </td>
				      				  <td height="70" align="center" bgcolor="#FFFFFF" class="STYLE19">
				      				   ${productClass.classifyname} 
				      				  </td>
				      				  <td height="70" align="center" bgcolor="#FFFFFF" class="STYLE19">
				      				   ${productClass.subsize} 
				      				  </td>
				      				   <td height="70" align="left" bgcolor="#FFFFFF" class="STYLE19">
				      				  	 ${productClass.keyworlds}
				      				  </td>
				      				   <td height="70" align="left" bgcolor="#FFFFFF" class="STYLE19">
				      				  	 ${productClass.describes} 
				      				  </td>
				      				   <td height="70" align="center" bgcolor="#FFFFFF" class="STYLE19">
				      				  	<#if  productClass.subsize!=0  >
					      				  		<div style="padding-top:5px"><a href="javascript:findSubClass(${productClass.classifyid},${productClass.subsize});">查看子类</a> </div> 
				      				  	</#if>
				      				  	
				      				  	<#if productClass.attrtable >
					      				  	<div  style="padding-top:5px">
					      				  		<a href="javascript:addClassAttr(${productClass.classifyid});">查看属性</a>
					      				  	</div> 
				      				  	</#if>
				      				  	
				      				  	 <div  style="padding-top:5px">
				      				  		 <a href="javascript:addClassAttr(${productClass.classifyid});">编辑属性</a>
				      				  	 </div> 
 				      				  	<div  style="padding-top:5px"><a href="javascript:addSubClass('${productClass.classifyid}');">新增子类</a> </div>  
				      				  </td>
					    	     </tr>
							  </#list>
						   <#else>
							  <tr>
							 	 <td colspan='2'>
									<div   align="center">没有数据</div> 
								</td>
							  </tr>
						</#if>
					</td>
      			</tr>
   			 </table></td>
  			</tr>
		</table>
	 <script>
	 $(function(){
			$("#addClass").click(function(){
				 $.microlife.openWindow(600,500,"openHtml.htm?path=addProductClass");
			 });	
	 	});	
		function addClassAttr(id){
			 $.microlife.openWindow(600,500,"openHtml.htm?path=addClassAttr&id="+id);
		}	 
		function addSubClass(id){
			 $.microlife.openWindow(600,500,"openHtml.htm?path=addProductClass&id="+id);
		}
	 function findSubClass(id,count){
		 if(count==0){
			 alert('没有子类别');
		 }else{
			window.location='productClass.htm?parentId='+id;	 
		 }
	 }
	 </script>
	</body>
</html>